package lec09api;

public class Roll {
    public static void main(String[] args) {

        for (int i = 0; i < 10; i++) {
            double k = Math.random();
            if (k <= 0.1) {
                System.out.println("First Prize:Mac book Pro2021");
            } else if (k <= 0.1 + 0.2) {
                System.out.println("Second Prize:Ipad  Pro2021");
            } else if (k <= 0.1 + 0.2 + 0.3) {
                System.out.println("Third Prize: MiPhone 2021");
            } else {
                System.out.println("Thank you!");
            }
        }
    }
}
